/**
 * 瀑布流
 */
const Pager = require('../aotoo/core/index')
const lib = Pager.lib

// mkCollapse
module.exports = function(params) {
  let dft = {
    $$id: lib.suid('nav-'),
    listClass: 'ss-nav',           // 容器类名
    itemClass: 'nav-item',           // 子项类名
    data: [],                           // 传入collapse数组数据
  }
  params.listClass ? params.listClass = ('ss-nav ' + params.listClass) : ''
  params.itemClass ? params.itemClass = ('nav-item ' + params.itemClass) : ''
  let opts = Object.assign({}, dft, params)
  
  return {
    $$id: opts.$$id,
    listClass: opts.listClass,
    itemClass: opts.itemClass,
    data: opts.data
  }
}